import observe from './observe'
import Watcher from './Watcher'

var obj = {
  a: {
    m: {
      n: 5
    }
  },
  b: 10,
  g: [1, 2, 3, 45]
}

observe(obj)

new Watcher(obj, 'a.m.n', function (val) {
  console.log('111111111', val)
})
obj.a.m.n = 88
// obj.g.push(66, 77, [88, 99])
// obj.g.splice(3, 1, [88, 99])

obj.g.push(111)

console.log(obj)
// console.log(obj.b)

// console.log(Array.prototype)
